package base.interactive.redis.bean;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Redis properties
 *
 * @description:
 * @author: cyj
 * @date 2020 -10-28 14:58:45
 */
@Component
@ConfigurationProperties(prefix = "spring.redis.cluster")
@Data
@ToString
public class RedisProperties {

    /**
     * Nodes
     */
    private String nodes;

    /**
     * Password
     */
    private String password;

    /**
     * Command timeout
     */
    private Integer commandTimeout;

    /**
     * Timeout
     */
    private Integer timeout;

    /**
     * Max attempts
     */
    private Integer maxAttempts;

    /**
     * Max redirects
     */
    private Integer maxRedirects;

    /**
     * Max active
     */
    private Integer maxActive;

    /**
     * Max wait
     */
    private Integer maxWait;

    /**
     * Max idle
     */
    private Integer maxIdle;

    /**
     * Min idle
     */
    private Integer minIdle;

    /**
     * Test on borrow
     */
    private boolean testOnBorrow;
}
